#include "Stock.h"

Stock::Stock(int num_, double price_)
{
    num = num_;
    price = price_;
    share = num * price;
}
Stock::Stock()
{
    num = 0;
    price = 0;
    share = num * price;
}
Stock::~Stock()
{
    std::cout << "Release object!" << std::endl;
}

void Stock::PrintShare()
{
    std::cout << "My share is " << share << std::endl;
}
